package com.ruoyi.web.controller.tool;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("测试swagger3.0")
@RestController
@RequestMapping("/test/zj")
public class TestZjController extends BaseController {

    @ApiOperation("获取用户信息")
    @ApiImplicitParam(name = "id",value = "用户id",required = true,dataType = "Long", dataTypeClass = Long.class)
    @GetMapping("/userinfo/{id}")
    public R<ZjUser> getUserInfo(@PathVariable Long id) {
        return R.ok(new ZjUser("哈哈",18,"男","学习,睡觉"));
    }


}
